package com.ruoyi.business.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;


/**
 * 预警推送人配置业务对象 warning_config
 *
 * @author ruoyi
 * @date 2024-05-03
 */

@Data
public class WarningConfigBo {

    /**
     * 预警规则主键
     */
    @NotNull(message = "预警规则主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * cron表达式
     */
    @NotBlank(message = "cron表达式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cron;

    /**
     * 是否启用（0=正常,1=停用）
     */
    @NotBlank(message = "是否启用（0=正常,1=停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 通知类型
     */
    @NotBlank(message = "通知类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;


}
